package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicCarIgnedtoMapper;
import com.whq.entity.BasicCarIgnedto;
import com.whq.service.BasicCarIgnedtoService;

@Service(value = "tcBasicCarIgnedtoService")
public class BasicCarIgnedtoServiceImpl implements BasicCarIgnedtoService {

    @Autowired
    private BasicCarIgnedtoMapper<BasicCarIgnedto>tcBasicCarIgnedtoMapper;
    
    @Override
    public Integer insertSelective(BasicCarIgnedto tcBasicCarIgnedto) throws Exception {
           return this.tcBasicCarIgnedtoMapper.insertSelective(tcBasicCarIgnedto);
        }

    @Override
    public Integer insertBatch(List<BasicCarIgnedto> tcBasicCarIgnedto) throws Exception {
           return this.tcBasicCarIgnedtoMapper.insertBatch(tcBasicCarIgnedto) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcBasicCarIgnedtoMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcBasicCarIgnedtoMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicCarIgnedto tcBasicCarIgnedto) {
           return this.tcBasicCarIgnedtoMapper.updateByPrimaryKeySelective(tcBasicCarIgnedto);
    }

    @Override
    public BasicCarIgnedto findById(Object id) {
           return (BasicCarIgnedto) this.tcBasicCarIgnedtoMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicCarIgnedto> selectByCondition(BasicCarIgnedto tcBasicCarIgnedto) {
           return (List<BasicCarIgnedto>) this.tcBasicCarIgnedtoMapper.selectByCondition(tcBasicCarIgnedto);
    }

    @Override
    public Integer selectCountByCondition(BasicCarIgnedto tcBasicCarIgnedto) {
           return  this.tcBasicCarIgnedtoMapper.selectCountByCondition(tcBasicCarIgnedto);
    }

}
